package com.hangxiang.approval.common;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ExamineApplyCommon extends Model<ExamineApplyCommon> implements Serializable {
    private static final long serialVersionUID = 498895832223167180L;

    @ApiModelProperty(value = "审批人id")
    @NotNull(message = "审批人id不能为null")
    private Integer userId;

    @ApiModelProperty(value = "申请id")
    @NotNull(message = "申请id不能为null")
    private Integer applyId;


    @ApiModelProperty(value = "状态:0拒绝，1通过")
    @NotNull(message = "状态不能为null")
    @Min(value=0,message = "必须大于0小于1")
    @Max(value=1,message = "必须大于0小于1")
    private Integer state;
}
